var commonser = (function ($, g) {

    var ret = {};

    /**
     * 注册
     * @param requestParams
     */
    ret.reg = function (requestParams) {
        return g._apiPost("/webUser/userRegister", requestParams);
    };

    /**
     * 登陆
     * @param requestParams
     * @returns {*}
     */
    ret.login = function (requestParams) {
        return g._apiPost("/webUser/webLogin", requestParams);
    };

    /**
     * 登出
     * @param requestParams
     * @returns {*}
     */
    ret.logout = function (requestParams) {
        return g._apiPost("/webUser/webLogout", requestParams);
    };

    /**
     * 密码重置
     * @param requestParams
     * @returns {*}
     */
    ret.resetPwd = function (requestParams) {
        return g._apiPost("/webUser/webPasswordReset", requestParams);
    };

    /**
     * 密码修改
     * @param requestParams
     * @returns {*}
     */
    ret.webUserPasswordModify = function (requestParams) {
        return g._apiPost("/webUser/webUserPasswordModify", requestParams);
    };

    /**
     * getUserInfo
     * @param requestParams
     * @returns {*}
     */
    ret.getUserInfo = function (requestParams) {
        return g._apiPost("/webUser/getMessageByUserName", requestParams);
    };

    /**
     * 修改用户信息
     * @param requestParams
     * @returns {*}
     */
    ret.upUserInfo = function (requestParams) {
        return g._apiPost("/webUser/webUserModify", requestParams);
    };

    /**
     * 发送短信验证码
     * @param requestParams
     * @returns {*}
     */
    ret.sendSms = function (requestParams) {
        return g._apiPost("/webUser/smsSend", requestParams);
    };


    /**
     * 贷款申请
     * @param requestParams
     * @returns {*}
     */
    ret.loanApply = function (requestParams) {
        return g._apiPost(" ", requestParams);
    };

    /**
     * 贷款申请列表
     * @param requestParams
     * @returns {*}
     */
    ret.qryLoanApplyArr = function (requestParams) {
        return g._apiPost(" ", requestParams);
    };

    /**
     * 贷款申请详情
     * @param requestParams
     * @returns {*}
     */
    ret.qryLoanApplyDetail = function (requestParams) {
        return g._apiPost(" ", requestParams);
    };


    /**
     * 个人信息修改
     * @param requestParams
     * @returns {*}
     */
    ret.editUser = function (requestParams) {
        return g._apiPost("", requestParams);
    };


    /**
     * 查询产品菜单
     * @param requestParams
     * @returns {*}
     */
    ret.qryLoanProductMenu = function (requestParams) {
        return g._apiPost("/loanProduct/getLoadProducts", requestParams);
    };


    /**
     * 查询贷款产品列表
     * @param requestParams
     * @returns {*}
     */
    ret.qryLoanProductArr = function (requestParams) {
        return g._apiPost("/loanProduct/loanProductQuery", requestParams);
    };


    /**
     * 查询贷款产品详情
     * @param requestParams
     * @returns {*}
     */
    ret.qryLoanProductDetail = function (requestParams) {
        return g._apiPost("/loanProduct/getLoanProductById", requestParams);
    };



    /**
     * 查询公告列表
     * @param requestParams
     * @returns {*}
     */
    ret.qryNotifyArr = function (requestParams) {
        return g._apiPost("/systemNotice/querySystemNoticeForPage", requestParams);
    };

    /**
     * 查询公告详情
     * @param requestParams
     * @returns {*}
     */
    ret.qryNotifyDetail = function (requestParams) {
        return g._apiPost("/systemNotice/querySystemNoticeById", requestParams);
    };


    /**
     *  展示内容列表查询
     * @param requestParams
     * @returns {*}
     */
    ret.qryContentArr = function (requestParams) {
        return g._apiPost("/systemCommonInfoT/querySystemCommonInfoT", requestParams);
    };

    /**
     *  展示内容详情查询
     * @param requestParams
     * @returns {*}
     */
    ret.qryContentDetail = function (requestParams) {
        return g._apiPost("/systemCommonInfoT/queryInfoSystemCommonInfoT", requestParams);
    };

    /**
     * gu關于我們
     * @param requestParams
     */
    ret.qryAboutMe = function (requestParams) {
        return g._apiPost("/systemCompanyT/querySystemCommonT", requestParams);
    };


    return ret;
})(jQuery, g);